<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class StoreGoods extends Model
{
    protected $table = 'store_goods';

    public $timestamps=false;

    protected $fillable = [
        "store_id",
        "title",
        "img",
        "num",
        "code",
        "price",
        "status",
        "sort",
        "create_at",
        "store_goods_cate_id"
    ];

    public function cate()
    {
        return $this->hasOne(StoreGoodsCate::class, "id", "store_goods_cate_id");
    }

}